/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
package entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "novalchapter", catalog = "test")
public class Novalchapter implements Serializable {
	private Long id;
	private long novelid;
	private int chapterid;
	private String chaptername;
	private String chaptercontent;

	public Novalchapter() {
	}

	public Novalchapter(long novelid, int chapterid, String chaptername) {
		this.novelid = novelid;
		this.chapterid = chapterid;
		this.chaptername = chaptername;
	}

	public Novalchapter(long novelid, int chapterid, String chaptername,
			String chaptercontent) {
		this.novelid = novelid;
		this.chapterid = chapterid;
		this.chaptername = chaptername;
		this.chaptercontent = chaptercontent;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "novelid", nullable = false)
	public long getNovelid() {
		return this.novelid;
	}

	public void setNovelid(long novelid) {
		this.novelid = novelid;
	}

	@Column(name = "chapterid", nullable = false)
	public int getChapterid() {
		return this.chapterid;
	}

	public void setChapterid(int chapterid) {
		this.chapterid = chapterid;
	}

	@Column(name = "chaptername", nullable = false, length = 50)
	public String getChaptername() {
		return this.chaptername;
	}

	public void setChaptername(String chaptername) {
		this.chaptername = chaptername;
	}

	@Column(name = "chaptercontent", length = 16777215)
	public String getChaptercontent() {
		return this.chaptercontent;
	}

	public void setChaptercontent(String chaptercontent) {
		this.chaptercontent = chaptercontent;
	}
}